<template>
  <div id="app">
    <img src="./assets/logo.png">
    <!--2.使用组件-->
    <HelloWorld/>
    <Header :MyTitle="title" :name="name" :age="age"/>
  </div>
</template>

<script>
// 1.引入子组件
import HelloWorld from './components/HelloWorld'
import Header from "./components/Header";
export default {
  name: 'App',
  data(){
    return{
      title:"这里是父组件传递给子组件的属性值",
      name:"宋霏",
      age:"18"
    }
  },
  components: {
    HelloWorld,Header
  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
